package com.mall.service.eshop;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mall.client.eshop.EshopTouchService;
import com.mall.custom.dao.read.EshopTouchReadMapper;
import com.mall.custom.dao.write.EshopTouchWriteMapper;
import com.mall.pojo.EshopTouch;
import com.mall.pojo.EshopTouchExample;
@Service
public class EshopTouchServiceImpl implements EshopTouchService {
	
	@Autowired
	private EshopTouchReadMapper eshopTouchReadMapper;
	@Autowired
	private EshopTouchWriteMapper eshopTouchWriteMapper;

	@Override
	public int modifyEshopTouch(EshopTouch eshopTouch) {
		return this.eshopTouchWriteMapper.updateByPrimaryKey(eshopTouch);
	}

	@Override
	public int insertEshopTouch(EshopTouch eshopTouch) {
		return this.eshopTouchWriteMapper.insert(eshopTouch);
	}

	@Override
	public EshopTouch getEshopTouchById(Long id) {
		return this.eshopTouchReadMapper.selectByPrimaryKey(id);
	}

	@Override
	public List<EshopTouch> getEshopTouchListByExample(EshopTouchExample example) {
		return this.eshopTouchReadMapper.selectByExample(example);
	}

	@Override
	public int getEshopTouchCount(EshopTouchExample example) {
		return this.eshopTouchReadMapper.countByExample(example);
	}

}
